<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta charset="utf-8">
<title>五谷香</title>
<link href="../dt/css/font-awesome.min.css" rel="stylesheet">
<link href="../dt/css/bootstrap.min.css" rel="stylesheet">
<link href="../dt/css/templatemo-style.css" rel="stylesheet">
<link href="../dt/css/common.css" rel="stylesheet" type="text/css" />


</head>
 <style type="text/css">
	.Navigation_name > #jie{
		margin-top:20px;
	}
	#t{
		float:left;
		padding-right:30px;
		margin-left:110px;
		position:relative;
	}
	#slogan{
		position:relative;
		top:83px;
		left:45px;
		height:80px;
		width:1000px;
		margin:auto;
	}
	#slogan_one{
		font-size:25px;
		margin-left:70px;
	}
	#slogan_two{
		font-weight:bolder;
		font-size:28px;
		color:red;
	}
</style>
<script type="text/javascript">
${message}
</script>
<body>
	<!-- Left column -->
	<div class="templatemo-flex-row">
		<div class="templatemo-content col-1 light-gray-bg">
			 <div id="top">
			    <div class="Inside_pages">
					<div class="hd_top_manu clearfix">
					  <ul class="clearfix">
					   	<li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/que.do">五谷香首页</a></li> 
					   	<c:if test="${name == null || name == ''}">
						    <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/login.htm">登录${name }</a></li> 
						    <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/reg.htm">注册</a></li> 
					    </c:if>
					    <c:if test="${name != null || name != ''}">
					    	 <li class="hd_menu_tit" data-addclass="hd_menu_hover">${name}</li>
					    	  <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="/dt/logout.do">退出</a></li>
					    </c:if>
					  </ul>
					</div>
			    </div>
			  </div>
			  <div class="Navigation" id="Navigation" style="height:80px">
				 <ul class="Navigation_name">
				  	<li><img alt="" src="../dt/img/logo.jpg" style="width:100px;height:80px"></li>
		            <li id="jie"><a href="/dt/index.do" class="active"><i class="fa fa-home fa-fw"></i>我的首页</a></li>
					<li id="jie"><a href="/dt/setUser.htm"><i
							class="fa fa-bar-chart fa-fw"></i>修改信息</a></li>
		             <li id="jie"><a href="/dt/queryStateOrder.do?orderState=已支付"><i
							class="fa fa-database fa-fw"></i>订单中心</a></li>
					<li id="jie"><a href="/dt/queryTrade.do"><i
							class="fa fa-map-marker fa-fw"></i>交易记录</a></li>
					<li id="jie"><a href="/dt/shopping.do"><i
							class="fa fa-map-marker fa-fw"></i>我的购物车</a></li>
					<li id="jie"><a href="/dt/addressMessage.do"><i
							class="fa fa-map-marker fa-fw"></i>地址管理</a></li>
				 </ul>			 
			</div>
		<script>$("#Navigation").slide({titCell:".Navigation_name li",trigger:"click"});</script>
			<form action="/dt/queryStateOrder.do">
	           <div style="float:right;margin-right:60px"> 
		             <select class="dd-sel" name="orderState">
		              <option <c:if test='${i == 2}'>selected</c:if> >已支付</option>
		              <option <c:if test='${i == 4}'>selected</c:if> >未支付</option>
		              <option <c:if test='${i == 3}'>selected</c:if> >已完成</option>
		              <option <c:if test='${i == 1}'>selected</c:if> value="已取消">退货</option>
		             </select>
		              <button type="submit">提交</button>
		         </div>
          	 </form>
			<div class="templatemo-content-container">
				<div class="templatemo-content-widget no-padding">
					<div class="panel panel-default table-responsive">
						<table
							class="table table-striped table-bordered templatemo-user-table">
							<thead>
								<tr>
									<td><a href="" class="white-text templatemo-sort-by">#
											<span class="caret"></span>
									</a></td>
									<td><a href="" class="white-text templatemo-sort-by">用户名
											<span class="caret"></span>
									</a></td>
									<td><a href="" class="white-text templatemo-sort-by">手机号
											<span class="caret"></span>
									</a></td>
									<td><a href="" class="white-text templatemo-sort-by">商品名称
											<span class="caret"></span>
									</a></td>
									<td>用户ID</td>
									<td><a href="" class="white-text templatemo-sort-by">备注<span
											class="caret"></span></a></td>
									<td><a href="" class="white-text templatemo-sort-by">下单时间
											<span class="caret"></span>
									</a></td>
									<td>收货地址</td>
									<td>订单编号</td>
									<td>订单状态</td>
									<td>商品数量</td>
									<td>商品单价</td>
									<td>操作</td>
									<td>操作</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${queryList}" var="query">
									<tr>
										<td><c:out value="${query.id}"></c:out></td>
										<td><c:out value="${query.userName}"></c:out></td>
										<td><c:out value="${query.userPhone}"></c:out></td>	
										<td><c:out value="${query.goodName}"></c:out></td>
										<td><c:out value="${query.userId}"></c:out></td>
										<td><c:out value="${query.remark}"></c:out></td>	
										<td><c:out value="${query.orderTime}"></c:out></td>
										<td><c:out value="${query.endAddress}"></c:out></td>	
										<td><c:out value="${query.orderNumber}"></c:out></td>
										<td><c:out value="${query.orderState}"></c:out></td>
										<td><c:out value="${query.goodNumber}"></c:out></td>	
										<td><c:out value="${query.goodPrice}"></c:out></td>	
										<td>
											<c:if test="${query.orderState == '已完成'}">
											<a href="/dt/queryLog.do?orderId=${query.id}">查询物流信息</a>
											</c:if>
											<c:if test="${query.orderState != '已完成'}">
												--
											</c:if>
										</td>
										<td>
										<c:if test="${query.orderState == '已支付'}">
											<a href="/dt/order/removeOrder.do?orderNumber=${query.orderNumber}&orderState=${query.orderState}&userId=${query.userId}&orderId=${query.id}">退货</a>
										</c:if>
									
										<c:if test="${query.orderState == '未支付'}">
											<a href="/dt/order/pay.do?id=${query.id}">支付</a>
										</c:if>		
										
									
										</td>
										
									</tr>		
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<div id="slogan">
					<span id="slogan_one"><b id="slogan_two">优</b> 品种优良</span>
					<span id="slogan_one"><b  id="slogan_two">绿</b> 绿色健康</span>
					<span id="slogan_one"><b  id="slogan_two">精</b> 米中精品</span>
					<span id="slogan_one"><b  id="slogan_two">香</b> 优选五谷香</span>
				</div>
			</div>
		</div>
	</div>
</body>
</html>